#pragma once

#include <QWidget>
class QLabel;
class QLineEdit;
class QPushButton;
class UDispBookWidget;
class UReviseBookWidget  : public QWidget
{
	Q_OBJECT

public:
	UReviseBookWidget(QWidget *parent = nullptr);
	~UReviseBookWidget();
private slots:
	void onClearButtonReleased();
	void onQueryButtonReleased();
	void onUpdateButtonReleased();
	void onReviseButtonReleased();
private:
	void initButton();
	void initLabel();
	void initLineEdit();
	void initReviseControl();

	QLabel* m_pISBN;
	QLabel* m_pTitle;
	QLineEdit* m_pISBNEdit;
	QLineEdit* m_pTitleEdit;
	QPushButton* m_pQueryButton;
	QPushButton* m_pClearButton;
	UDispBookWidget* m_pDispBookWidget;

	QLabel* m_pTitle1;
	QLabel* m_pAuthor;
	QLabel* m_pPress;
	QLabel* m_pIsbn;
	QLabel* m_pDate;
	QLabel* m_pImage;
	QLineEdit* m_pTitleEdit1;
	QLineEdit* m_pAuthorEdit;
	QLineEdit* m_pPressEdit;
	QLineEdit* m_pIsbnEdit;
	QLineEdit* m_pDateEdit;
	QLineEdit* m_pImageEdit;

	QPushButton* m_pUpdateButton;
	QPushButton* m_pReviseButton;
	QString initialISBN;
};
